import 'package:jyofservice/bean/glz_list_entity.dart';

glzListEntityFromJson(GlzListEntity data, Map<String, dynamic> json) {
	if (json['glz_id'] != null) {
		data.glzId = json['glz_id'] is String
				? int.tryParse(json['glz_id'])
				: json['glz_id'].toInt();
	}
	if (json['glz_name'] != null) {
		data.glzName = json['glz_name'].toString();
	}
	return data;
}

Map<String, dynamic> glzListEntityToJson(GlzListEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['glz_id'] = entity.glzId;
	data['glz_name'] = entity.glzName;
	return data;
}